home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Palm FlyingToastersScreenSaver / hacktrap.txt < prev    next >
Text File  |  2000-06-23  |  24KB  |  849 lines

  1.  
  2. /*******************************************************************
  3.  *                              Pilot Software  
  4.  *
  5.  *         Copyright(c) 1994, Palm Computing Inc., All Rights Reserved
  6.  *
  7.  *-------------------------------------------------------------------
  8.  * FileName:  
  9.  *        SysTraps.h
  10.  *
  11.  * Description:
  12.  *        Pilot Traps
  13.  *
  14.  * History:
  15.  *        6/13/95    RM    - Created by Ron Marianetti
  16.  *
  17.  *    10/6/96  EK - Trap codes added by Edward Keyes
  18.  *
  19.  *******************************************************************/
  20.  
  21.  #ifndef __SYSTRAPS_H_
  22.  #define __SYSTRAPS_H_
  23.  
  24. // Include elementary types
  25. #include <Common.h>
  26. #include <M68KHwr.h>
  27.  
  28. // Regular traps start here and go up by 1's
  29. #define    sysTrapBase            0xA000
  30. typedef enum {
  31.     sysTrapMemInit = sysTrapBase,//0xA000
  32.     sysTrapMemInitHeapTable,//0xA001
  33.     sysTrapMemStoreInit,//0xA002
  34.     sysTrapMemCardFormat,//0xA003
  35.     sysTrapMemCardInfo,//0xA004
  36.     sysTrapMemStoreInfo,//0xA005
  37.     sysTrapMemStoreSetInfo,//0xA006
  38.     sysTrapMemNumHeaps,//0xA007
  39.     sysTrapMemNumRAMHeaps,//0xA008
  40.     sysTrapMemHeapID,//0xA009
  41.     sysTrapMemHeapPtr,//0xA00A
  42.     sysTrapMemHeapFreeBytes,//0xA00B
  43.     sysTrapMemHeapSize,//0xA00C
  44.     sysTrapMemHeapFlags,//0xA00D
  45.     sysTrapMemHeapCompact,//0xA00E
  46.     sysTrapMemHeapInit,//0xA00F
  47.     sysTrapMemHeapFreeByOwnerID,//0xA010
  48.     sysTrapMemChunkNew,//0xA011
  49.     sysTrapMemChunkFree,//0xA012
  50.     sysTrapMemPtrNew,//0xA013
  51.     sysTrapMemPtrRecoverHandle,//0xA014
  52.     sysTrapMemPtrFlags,//0xA015
  53.     sysTrapMemPtrSize,//0xA016
  54.     sysTrapMemPtrOwner,//0xA017
  55.     sysTrapMemPtrHeapID,//0xA018
  56.     sysTrapMemPtrCardNo,//0xA019
  57.     sysTrapMemPtrToLocalID,//0xA01A
  58.     sysTrapMemPtrSetOwner,//0xA01B
  59.     sysTrapMemPtrResize,//0xA01C
  60.     sysTrapMemPtrResetLock,//0xA01D
  61.     sysTrapMemHandleNew,//0xA01E
  62.     sysTrapMemHandleLockCount,//0xA01F
  63.     sysTrapMemHandleToLocalID,//0xA020
  64.     sysTrapMemHandleLock,//0xA021
  65.     sysTrapMemHandleUnlock,//0xA022
  66.     sysTrapMemLocalIDToGlobal,//0xA023
  67.     sysTrapMemLocalIDKind,//0xA024
  68.     sysTrapMemLocalIDToPtr,//0xA025
  69.     sysTrapMemMove,//0xA026
  70.     sysTrapMemSet,//0xA027
  71.     sysTrapMemStoreSearch,//0xA028
  72.     sysTrapMemPtrDataStorage,//0xA029
  73.     sysTrapMemKernelInit,//0xA02A
  74.     sysTrapMemHandleFree,//0xA02B
  75.     sysTrapMemHandleFlags,//0xA02C
  76.     sysTrapMemHandleSize,//0xA02D
  77.     sysTrapMemHandleOwner,//0xA02E
  78.     sysTrapMemHandleHeapID,//0xA02F
  79.     sysTrapMemHandleDataStorage,//0xA030
  80.     sysTrapMemHandleCardNo,//0xA031
  81.     sysTrapMemHandleSetOwner,//0xA032
  82.     sysTrapMemHandleResize,//0xA033
  83.     sysTrapMemHandleResetLock,//0xA034
  84.     sysTrapMemPtrUnlock,//0xA035
  85.     sysTrapMemLocalIDToLockedPtr,//0xA036
  86.     sysTrapMemSetDebugMode,//0xA037
  87.     sysTrapMemHeapScramble,//0xA038
  88.     sysTrapMemHeapCheck,//0xA039
  89.     sysTrapMemNumCards,//0xA03A
  90.     sysTrapMemDebugMode,//0xA03B
  91.     sysTrapMemSemaphoreReserve,//0xA03C
  92.     sysTrapMemSemaphoreRelease,//0xA03D
  93.     sysTrapMemHeapDynamic,//0xA03E
  94.     sysTrapMemNVParams,//0xA03F
  95.     
  96.     
  97.     sysTrapDmInit,//0xA040
  98.     sysTrapDmCreateDatabase,//0xA041
  99.     sysTrapDmDeleteDatabase,//0xA042
  100.     sysTrapDmNumDatabases,//0xA043
  101.     sysTrapDmGetDatabase,//0xA044
  102.     sysTrapDmFindDatabase,//0xA045
  103.     sysTrapDmDatabaseInfo,//0xA046
  104.     sysTrapDmSetDatabaseInfo,//0xA047
  105.     sysTrapDmDatabaseSize,//0xA048
  106.     sysTrapDmOpenDatabase,//0xA049
  107.     sysTrapDmCloseDatabase,//0xA04A
  108.     sysTrapDmNextOpenDatabase,//0xA04B
  109.     sysTrapDmOpenDatabaseInfo,//0xA04C
  110.     sysTrapDmResetRecordStates,//0xA04D
  111.     sysTrapDmGetLastErr,//0xA04E
  112.     sysTrapDmNumRecords,//0xA04F
  113.     sysTrapDmRecordInfo,//0xA050
  114.     sysTrapDmSetRecordInfo,//0xA051
  115.     sysTrapDmAttachRecord,//0xA052
  116.     sysTrapDmDetachRecord,//0xA053
  117.     sysTrapDmMoveRecord,//0xA054
  118.     sysTrapDmNewRecord,//0xA055
  119.     sysTrapDmRemoveRecord,//0xA056
  120.     sysTrapDmDeleteRecord,//0xA057
  121.     sysTrapDmArchiveRecord,//0xA058
  122.     sysTrapDmNewHandle,//0xA059
  123.     sysTrapDmRemoveSecretRecords,//0xA05A
  124.     sysTrapDmQueryRecord,//0xA05B
  125.     sysTrapDmGetRecord,//0xA05C
  126.     sysTrapDmResizeRecord,//0xA05D
  127.     sysTrapDmReleaseRecord,//0xA05E
  128.     sysTrapDmGetResource,//0xA05F
  129.     sysTrapDmGet1Resource,//0xA060
  130.     sysTrapDmReleaseResource,//0xA061
  131.     sysTrapDmResizeResource,//0xA062
  132.     sysTrapDmNextOpenResDatabase,//0xA063
  133.     sysTrapDmFindResourceType,//0xA064
  134.     sysTrapDmFindResource,//0xA065
  135.     sysTrapDmSearchResource,//0xA066
  136.     sysTrapDmNumResources,//0xA067
  137.     sysTrapDmResourceInfo,//0xA068
  138.     sysTrapDmSetResourceInfo,//0xA069
  139.     sysTrapDmAttachResource,//0xA06A
  140.     sysTrapDmDetachResource,//0xA06B
  141.     sysTrapDmNewResource,//0xA06C
  142.     sysTrapDmRemoveResource,//0xA06D
  143.     sysTrapDmGetResourceIndex,//0xA06E
  144.     sysTrapDmQuickSort,//0xA06F
  145.     sysTrapDmQueryNextInCategory,//0xA070
  146.     sysTrapDmNumRecordsInCategory,//0xA071
  147.     sysTrapDmPositionInCategory,//0xA072
  148.     sysTrapDmSeekRecordInCategory,//0xA073
  149.     sysTrapDmMoveCategory,//0xA074
  150.     sysTrapDmOpenDatabaseByTypeCreator,//0xA075
  151.     sysTrapDmWrite,//0xA076
  152.     sysTrapDmStrCopy,//0xA077
  153.     sysTrapDmGetNextDatabaseByTypeCreator,//0xA078
  154.     sysTrapDmWriteCheck,//0xA079
  155.     sysTrapDmMoveOpenDBContext,//0xA07A
  156.     sysTrapDmFindRecordByID,//0xA07B
  157.     sysTrapDmGetAppInfoID,//0xA07C
  158.     sysTrapDmFindSortPosition,//0xA07D
  159.     sysTrapDmSet,//0xA07E
  160.     sysTrapDmCreateDatabaseFromImage,//0xA07F
  161.  
  162.     
  163.     sysTrapDbgSrcMessage,//0xA080
  164.     sysTrapDbgMessage,//0xA081
  165.     sysTrapDbgGetMessage,//0xA082
  166.     sysTrapDbgCommSettings,//0xA083
  167.     
  168.     sysTrapErrDisplayFileLineMsg,//0xA084
  169.     sysTrapErrSetJump,//0xA085
  170.     sysTrapErrLongJump,//0xA086
  171.     sysTrapErrThrow,//0xA087
  172.     sysTrapErrExceptionList,//0xA088
  173.     
  174.     sysTrapSysBroadcastActionCode,//0xA089
  175.     sysTrapSysUnimplemented,//0xA08A
  176.     sysTrapSysColdBoot,//0xA08B
  177.     sysTrapSysReset,//0xA08C
  178.     sysTrapSysDoze,//0xA08D
  179.     sysTrapSysAppLaunch,//0xA08E
  180.     sysTrapSysAppStartup,//0xA08F
  181.     sysTrapSysAppExit,//0xA090
  182.     sysTrapSysSetA5,//0xA091
  183.     sysTrapSysSetTrapAddress,//0xA092
  184.     sysTrapSysGetTrapAddress,//0xA093
  185.     sysTrapSysTranslateKernelErr,//0xA094
  186.     sysTrapSysSemaphoreCreate,//0xA095
  187.     sysTrapSysSemaphoreDelete,//0xA096
  188.     sysTrapSysSemaphoreWait,//0xA097
  189.     sysTrapSysSemaphoreSignal,//0xA098
  190.     sysTrapSysTimerCreate,//0xA099
  191.     sysTrapSysTimerWrite,//0xA09A
  192.     sysTrapSysTaskCreate,//0xA09B
  193.     sysTrapSysTaskDelete,//0xA09C
  194.     sysTrapSysTaskTrigger,//0xA09D
  195.     sysTrapSysTaskID,//0xA09E
  196.     sysTrapSysTaskUserInfoPtr,//0xA09F
  197.     sysTrapSysTaskDelay,//0xA0A0
  198.     sysTrapSysTaskSetTermProc,//0xA0A1
  199.     sysTrapSysUILaunch,//0xA0A2
  200.     sysTrapSysNewOwnerID,//0xA0A3
  201.     sysTrapSysSemaphoreSet,//0xA0A4
  202.     sysTrapSysDisableInts,//0xA0A5
  203.     sysTrapSysRestoreStatus,//0xA0A6
  204.     sysTrapSysUIAppSwitch,//0xA0A7
  205.     sysTrapSysCurAppInfoP,//0xA0A8
  206.     sysTrapSysHandleEvent,//0xA0A9
  207.     sysTrapSysInit,//0xA0AA
  208.     sysTrapSysQSort,//0xA0AB
  209.     sysTrapSysCurAppDatabase,//0xA0AC
  210.     sysTrapSysFatalAlert,//0xA0AD
  211.     sysTrapSysResSemaphoreCreate,//0xA0AE
  212.     sysTrapSysResSemaphoreDelete,//0xA0AF
  213.     sysTrapSysResSemaphoreReserve,//0xA0B0
  214.     sysTrapSysResSemaphoreRelease,//0xA0B1
  215.     sysTrapSysSleep,//0xA0B2
  216.     sysTrapSysKeyboardDialog,//0xA0B3
  217.     sysTrapSysAppLauncherDialog,//0xA0B4
  218.     sysTrapSysSetPerformance,//0xA0B5
  219.     sysTrapSysBatteryInfo,//0xA0B6
  220.     sysTrapSysLibInstall,//0xA0B7
  221.     sysTrapSysLibRemove,//0xA0B8
  222.     sysTrapSysLibTblEntry,//0xA0B9
  223.     sysTrapSysLibFind,//0xA0BA
  224.     sysTrapSysBatteryDialog,//0xA0BB
  225.     sysTrapSysCopyStringResource,//0xA0BC
  226.     sysTrapSysKernelInfo,//0xA0BD
  227.     sysTrapSysLaunchConsole,//0xA0BE
  228.     sysTrapSysTimerDelete,//0xA0BF
  229.     sysTrapSysSetAutoOffTime,//0xA0C0
  230.     sysTrapSysFormPointerArrayToStrings,//0xA0C1
  231.     sysTrapSysRandom,//0xA0C2
  232.     sysTrapSysTaskSwitching,//0xA0C3
  233.     sysTrapSysTimerRead,//0xA0C4
  234.  
  235.  
  236.     sysTrapStrCopy,//0xA0C5
  237.     sysTrapStrCat,//0xA0C6
  238.     sysTrapStrLen,//0xA0C7
  239.     sysTrapStrCompare,//0xA0C8
  240.     sysTrapStrIToA,//0xA0C9
  241.     sysTrapStrCaselessCompare,//0xA0CA
  242.     sysTrapStrIToH,//0xA0CB
  243.     sysTrapStrChr,//0xA0CC
  244.     sysTrapStrStr,//0xA0CD
  245.     sysTrapStrAToI,//0xA0CE
  246.     sysTrapStrToLower,//0xA0CF
  247.  
  248.     sysTrapSerReceiveISP,//0xA0D0
  249.     
  250.     sysTrapSlkOpen,//0xA0D1
  251.     sysTrapSlkClose,//0xA0D2
  252.     sysTrapSlkOpenSocket,//0xA0D3
  253.     sysTrapSlkCloseSocket,//0xA0D4
  254.     sysTrapSlkSocketRefNum,//0xA0D5
  255.     sysTrapSlkSocketSetTimeout,//0xA0D6
  256.     sysTrapSlkFlushSocket,//0xA0D7
  257.     sysTrapSlkSetSocketListener,//0xA0D8
  258.     sysTrapSlkSendPacket,//0xA0D9
  259.     sysTrapSlkReceivePacket,//0xA0DA
  260.     sysTrapSlkSysPktDefaultResponse,//0xA0DB
  261.     sysTrapSlkProcessRPC,//0xA0DC
  262.  
  263.     
  264.     sysTrapConPutS,//0xA0DD
  265.     sysTrapConGetS,//0xA0DE
  266.     
  267.     sysTrapFplInit,//0xA0DF
  268.     sysTrapFplFree,//0xA0E0
  269.     sysTrapFplFToA,//0xA0E1
  270.     sysTrapFplAToF,//0xA0E2
  271.     sysTrapFplBase10Info,//0xA0E3
  272.     sysTrapFplLongToFloat,//0xA0E4
  273.     sysTrapFplFloatToLong,//0xA0E5
  274.     sysTrapFplFloatToULong,//0xA0E6
  275.     sysTrapFplMul,//0xA0E7
  276.     sysTrapFplAdd,//0xA0E8
  277.     sysTrapFplSub,//0xA0E9
  278.     sysTrapFplDiv,//0xA0EA
  279.     
  280.     sysTrapScrInit,//0xA0EB
  281.     sysTrapScrCopyRectangle,//0xA0EC
  282.     sysTrapScrDrawChars,//0xA0ED
  283.     sysTrapScrLineRoutine,//0xA0EE
  284.     sysTrapScrRectangleRoutine,//0xA0EF
  285.     sysTrapScrScreenInfo,//0xA0F0
  286.     sysTrapScrDrawNotify,//0xA0F1
  287.     sysTrapScrSendUpdateArea,//0xA0F2
  288.     sysTrapScrCompressScanLine,//0xA0F3
  289.     sysTrapScrDeCompressScanLine,//0xA0F4
  290.     
  291.     
  292.     sysTrapTimGetSeconds,//0xA0F5
  293.     sysTrapTimSetSeconds,//0xA0F6
  294.     sysTrapTimGetTicks,//0xA0F7
  295.     sysTrapTimInit,//0xA0F8
  296.     sysTrapTimSetAlarm,//0xA0F9
  297.     sysTrapTimGetAlarm,//0xA0FA
  298.     sysTrapTimHandleInterrupt,//0xA0FB
  299.     sysTrapTimSecondsToDateTime,//0xA0FC
  300.     sysTrapTimDateTimeToSeconds,//0xA0FD
  301.     sysTrapTimAdjust,//0xA0FE
  302.     sysTrapTimSleep,//0xA0FF
  303.     sysTrapTimWake,//0xA100
  304.     
  305.     sysTrapCategoryCreateList,//0xA101
  306.     sysTrapCategoryFreeList,//0xA102
  307.     sysTrapCategoryFind,//0xA103
  308.     sysTrapCategoryGetName,//0xA104
  309.     sysTrapCategoryEdit,//0xA105
  310.     sysTrapCategorySelect,//0xA106
  311.     sysTrapCategoryGetNext,//0xA107
  312.     sysTrapCategorySetTriggerLabel,//0xA108
  313.     sysTrapCategoryTruncateName,//0xA109
  314.     
  315.     sysTrapClipboardAddItem,//0xA10A
  316.     sysTrapClipboardCheckIfItemExist,//0xA10B
  317.     sysTrapClipboardGetItem,//0xA10C
  318.     
  319.     sysTrapCtlDrawControl,//0xA10D
  320.     sysTrapCtlEraseControl,//0xA10E
  321.     sysTrapCtlHideControl,//0xA10F
  322.     sysTrapCtlShowControl,//0xA110
  323.     sysTrapCtlGetValue,//0xA111
  324.     sysTrapCtlSetValue,//0xA112
  325.     sysTrapCtlGetLabel,//0xA113
  326.     sysTrapCtlSetLabel,//0xA114
  327.     sysTrapCtlHandleEvent,//0xA115
  328.     sysTrapCtlHitControl,//0xA116
  329.     sysTrapCtlSetEnabled,//0xA117
  330.     sysTrapCtlSetUsable,//0xA118
  331.     sysTrapCtlEnabled,//0xA119
  332.  
  333.     
  334.     sysTrapEvtInitialize,//0xA11A
  335.     sysTrapEvtAddEventToQueue,//0xA11B
  336.     sysTrapEvtCopyEvent,//0xA11C
  337.     sysTrapEvtGetEvent,//0xA11D
  338.     sysTrapEvtGetPen,//0xA11E
  339.     sysTrapEvtSysInit,//0xA11F
  340.     sysTrapEvtGetSysEvent,//0xA120
  341.     sysTrapEvtProcessSoftKeyStroke,//0xA121
  342.     sysTrapEvtGetPenBtnList,//0xA122
  343.     sysTrapEvtSetPenQueuePtr,//0xA123
  344.     sysTrapEvtPenQueueSize,//0xA124
  345.     sysTrapEvtFlushPenQueue,//0xA125
  346.     sysTrapEvtEnqueuePenPoint,//0xA126
  347.     sysTrapEvtDequeuePenStrokeInfo,//0xA127
  348.     sysTrapEvtDequeuePenPoint,//0xA128
  349.     sysTrapEvtFlushNextPenStroke,//0xA129
  350.     sysTrapEvtSetKeyQueuePtr,//0xA12A
  351.     sysTrapEvtKeyQueueSize,//0xA12B
  352.     sysTrapEvtFlushKeyQueue,//0xA12C
  353.     sysTrapEvtEnqueueKey,//0xA12D
  354.     sysTrapEvtDequeueKeyEvent,//0xA12E
  355.     sysTrapEvtWakeup,//0xA12F
  356.     sysTrapEvtResetAutoOffTimer,//0xA130
  357.     sysTrapEvtKeyQueueEmpty,//0xA131
  358.     sysTrapEvtEnableGraffiti,//0xA132
  359.  
  360.     
  361.     sysTrapFldCopy,//0xA133
  362.     sysTrapFldCut,//0xA134
  363.     sysTrapFldDrawField,//0xA135
  364.     sysTrapFldEraseField,//0xA136
  365.     sysTrapFldFreeMemory,//0xA137
  366.     sysTrapFldGetBounds,//0xA138
  367.     sysTrapFldGetTextPtr,//0xA139
  368.     sysTrapFldGetSelection,//0xA13A
  369.     sysTrapFldHandleEvent,//0xA13B
  370.     sysTrapFldPaste,//0xA13C
  371.     sysTrapFldRecalculateField,//0xA13D
  372.     sysTrapFldSetBounds,//0xA13E
  373.     sysTrapFldSetText,//0xA13F
  374.     sysTrapFldGetFont,//0xA140
  375.     sysTrapFldSetFont,//0xA141
  376.     sysTrapFldSetSelection,//0xA142
  377.     sysTrapFldGrabFocus,//0xA143
  378.     sysTrapFldReleaseFocus,//0xA144
  379.     sysTrapFldGetInsPtPosition,//0xA145
  380.     sysTrapFldSetInsPtPosition,//0xA146
  381.     sysTrapFldSetScrollPosition,//0xA147
  382.     sysTrapFldGetScrollPosition,//0xA148
  383.     sysTrapFldGetTextHeight,//0xA149
  384.     sysTrapFldGetTextAllocatedSize,//0xA14A
  385.     sysTrapFldGetTextLength,//0xA14B
  386.     sysTrapFldScrollField,//0xA14C
  387.     sysTrapFldScrollable,//0xA14D
  388.     sysTrapFldGetVisibleLines,//0xA14E
  389.     sysTrapFldGetAttributes,//0xA14F
  390.     sysTrapFldSetAttributes,//0xA150
  391.     sysTrapFldSendChangeNotification,//0xA151
  392.     sysTrapFldCalcFieldHeight,//0xA152
  393.     sysTrapFldGetTextHandle,//0xA153
  394.     sysTrapFldCompactText,//0xA154
  395.     sysTrapFldDirty,//0xA155
  396.     sysTrapFldWordWrap,//0xA156
  397.     sysTrapFldSetTextAllocatedSize,//0xA157
  398.     sysTrapFldSetTextHandle,//0xA158
  399.     sysTrapFldSetTextPtr,//0xA159
  400.     sysTrapFldGetMaxChars,//0xA15A
  401.     sysTrapFldSetMaxChars,//0xA15B
  402.     sysTrapFldSetUsable,//0xA15C
  403.     sysTrapFldInsert,//0xA15D
  404.     sysTrapFldDelete,//0xA15E
  405.     sysTrapFldUndo,//0xA15F
  406.     sysTrapFldSetDirty,//0xA160
  407.     sysTrapFldSendHeightChangeNotification,//0xA161
  408.     sysTrapFldMakeFullyVisible,//0xA162
  409.     
  410.     
  411.     sysTrapFntGetFont,//0xA163
  412.     sysTrapFntSetFont,//0xA164
  413.     sysTrapFntGetFontPtr,//0xA165
  414.     sysTrapFntBaseLine,//0xA166
  415.     sysTrapFntCharHeight,//0xA167
  416.     sysTrapFntLineHeight,//0xA168
  417.     sysTrapFntAverageCharWidth,//0xA169
  418.     sysTrapFntCharWidth,//0xA16A
  419.     sysTrapFntCharsWidth,//0xA16B
  420.     sysTrapFntDescenderHeight,//0xA16C
  421.     sysTrapFntCharsInWidth,//0xA16D
  422.     sysTrapFntLineWidth,//0xA16E
  423.  
  424.  
  425.     
  426.     sysTrapFrmInitForm,//0xA16F
  427.     sysTrapFrmDeleteForm,//0xA170
  428.     sysTrapFrmDrawForm,//0xA171
  429.     sysTrapFrmEraseForm,//0xA172
  430.     sysTrapFrmGetActiveForm,//0xA173
  431.     sysTrapFrmSetActiveForm,//0xA174
  432.     sysTrapFrmGetActiveFormID,//0xA175
  433.     sysTrapFrmGetUserModifiedState,//0xA176
  434.     sysTrapFrmSetNotUserModified,//0xA177
  435.     sysTrapFrmGetFocus,//0xA178
  436.     sysTrapFrmSetFocus,//0xA179
  437.     sysTrapFrmHandleEvent,//0xA17A
  438.     sysTrapFrmGetFormBounds,//0xA17B
  439.     sysTrapFrmGetWindowHandle,//0xA17C
  440.     sysTrapFrmGetFormId,//0xA17D
  441.     sysTrapFrmGetFormPtr,//0xA17E
  442.     sysTrapFrmGetNumberOfObjects,//0xA17F
  443.     sysTrapFrmGetObjectIndex,//0xA180
  444.     sysTrapFrmGetObjectId,//0xA181
  445.     sysTrapFrmGetObjectType,//0xA182
  446.     sysTrapFrmGetObjectPtr,//0xA183
  447.     sysTrapFrmHideObject,//0xA184
  448.     sysTrapFrmShowObject,//0xA185
  449.     sysTrapFrmGetObjectPosition,//0xA186
  450.     sysTrapFrmSetObjectPositon,//0xA187
  451.     sysTrapFrmGetControlValue,//0xA188
  452.     sysTrapFrmSetControlValue,//0xA189
  453.     sysTrapFrmGetControlGroupSelection,//0xA18A
  454.     sysTrapFrmSetControlGroupSelection,//0xA18B
  455.     sysTrapFrmCopyLabel,//0xA18C
  456.     sysTrapFrmSetLabel,//0xA18D
  457.     sysTrapFrmGetLabel,//0xA18E
  458.     sysTrapFrmSetCategoryLabel,//0xA18F
  459.     sysTrapFrmGetTitle,//0xA190
  460.     sysTrapFrmSetTitle,//0xA191
  461.     sysTrapFrmAlert,//0xA192
  462.     sysTrapFrmDoDialog,//0xA193
  463.     sysTrapFrmCustomAlert,//0xA194
  464.     sysTrapFrmHelp,//0xA195
  465.     sysTrapFrmUpdateScrollers,//0xA196
  466.     sysTrapFrmGetFirstForm,//0xA197
  467.     sysTrapFrmVisible,//0xA198
  468.     sysTrapFrmGetObjectBounds,//0xA199
  469.     sysTrapFrmCopyTitle,//0xA19A
  470.     sysTrapFrmGotoForm,//0xA19B
  471.     sysTrapFrmPopupForm,//0xA19C
  472.     sysTrapFrmUpdateForm,//0xA19D
  473.     sysTrapFrmReturnToForm,//0xA19E
  474.     sysTrapFrmSetEventHandler,//0xA19F
  475.     sysTrapFrmDispatchEvent,//0xA1A0
  476.     sysTrapFrmCloseAllForms,//0xA1A1
  477.     sysTrapFrmSaveAllForms,//0xA1A2
  478.     sysTrapFrmGetGadgetData,//0xA1A3
  479.     sysTrapFrmSetGadgetData,//0xA1A4
  480.     sysTrapFrmSetCategoryTrigger,//0xA1A5
  481.  
  482.     
  483.     sysTrapUIInitialize,//0xA1A6
  484.     sysTrapUIReset,//0xA1A7
  485.  
  486.     sysTrapInsPtInitialize,//0xA1A8
  487.     sysTrapInsPtSetLocation,//0xA1A9
  488.     sysTrapInsPtGetLocation,//0xA1AA
  489.     sysTrapInsPtEnable,//0xA1AB
  490.     sysTrapInsPtEnabled,//0xA1AC
  491.     sysTrapInsPtSetHeight,//0xA1AD
  492.     sysTrapInsPtGetHeight,//0xA1AE
  493.     sysTrapInsPtCheckBlink,//0xA1AF
  494.     
  495.     sysTrapLstSetDrawFunction,//0xA1B0
  496.     sysTrapLstDrawList,//0xA1B1
  497.     sysTrapLstEraseList,//0xA1B2
  498.     sysTrapLstGetSelection,//0xA1B3
  499.     sysTrapLstGetSelectionText,//0xA1B4
  500.     sysTrapLstHandleEvent,//0xA1B5
  501.     sysTrapLstSetHeight,//0xA1B6
  502.     sysTrapLstSetSelection,//0xA1B7
  503.     sysTrapLstSetListChoices,//0xA1B8
  504.     sysTrapLstMakeItemVisible,//0xA1B9
  505.     sysTrapLstGetNumberOfItems,//0xA1BA
  506.     sysTrapLstPopupList,//0xA1BB
  507.     sysTrapLstSetPosition,//0xA1BC
  508.     
  509.     sysTrapMenuInit,//0xA1BD
  510.     sysTrapMenuDispose,//0xA1BE
  511.     sysTrapMenuHandleEvent,//0xA1BF
  512.     sysTrapMenuDrawMenu,//0xA1C0
  513.     sysTrapMenuEraseStatus,//0xA1C1
  514.     sysTrapMenuGetActiveMenu,//0xA1C2
  515.     sysTrapMenuSetActiveMenu,//0xA1C3
  516.  
  517.     
  518.     sysTrapRctSetRectangle,//0xA1C4
  519.     sysTrapRctCopyRectangle,//0xA1C5
  520.     sysTrapRctInsetRectangle,//0xA1C6
  521.     sysTrapRctOffsetRectangle,//0xA1C7
  522.     sysTrapRctPtInRectangle,//0xA1C8
  523.     sysTrapRctGetIntersection,//0xA1C9
  524.  
  525.     
  526.     sysTrapTblDrawTable,//0xA1CA
  527.     sysTrapTblEraseTable,//0xA1CB
  528.     sysTrapTblHandleEvent,//0xA1CC
  529.     sysTrapTblGetItemBounds,//0xA1CD
  530.     sysTrapTblSelectItem,//0xA1CE
  531.     sysTrapTblGetItemInt,//0xA1CF
  532.     sysTrapTblSetItemInt,//0xA1D0
  533.     sysTrapTblSetItemStyle,//0xA1D1
  534.     sysTrapTblUnhighlightSelection,//0xA1D2
  535.     sysTrapTblSetRowUsable,//0xA1D3
  536.     sysTrapTblGetNumberOfRows,//0xA1D4
  537.     sysTrapTblSetCustomDrawProcedure,//0xA1D5
  538.     sysTrapTblSetRowSelectable,//0xA1D6
  539.     sysTrapTblRowSelectable,//0xA1D7
  540.     sysTrapTblSetLoadDataProcedure,//0xA1D8
  541.     sysTrapTblSetSaveDataProcedure,//0xA1D9
  542.     sysTrapTblGetBounds,//0xA1DA
  543.     sysTrapTblSetRowHeight,//0xA1DB
  544.     sysTrapTblGetColumnWidth,//0xA1DC
  545.     sysTrapTblGetRowID,//0xA1DD
  546.     sysTrapTblSetRowID,//0xA1DE
  547.     sysTrapTblMarkRowInvalid,//0xA1DF
  548.     sysTrapTblMarkTableInvalid,//0xA1E0
  549.     sysTrapTblGetSelection,//0xA1E1
  550.     sysTrapTblInsertRow,//0xA1E2
  551.     sysTrapTblRemoveRow,//0xA1E3
  552.     sysTrapTblRowInvalid,//0xA1E4
  553.     sysTrapTblRedrawTable,//0xA1E5
  554.     sysTrapTblRowUsable,//0xA1E6
  555.     sysTrapTblReleaseFocus,//0xA1E7
  556.     sysTrapTblEditing,//0xA1E8
  557.     sysTrapTblGetCurrentField,//0xA1E9
  558.     sysTrapTblSetColumnUsable,//0xA1EA
  559.     sysTrapTblGetRowHeight,//0xA1EB
  560.     sysTrapTblSetColumnWidth,//0xA1EC
  561.     sysTrapTblGrabFocus,//0xA1ED
  562.     sysTrapTblSetItemPtr,//0xA1EE
  563.     sysTrapTblFindRowID,//0xA1EF
  564.     sysTrapTblGetLastUsableRow,//0xA1F0
  565.     sysTrapTblGetColumnSpacing,//0xA1F1
  566.     sysTrapTblFindRowData,//0xA1F2
  567.     sysTrapTblGetRowData,//0xA1F3
  568.     sysTrapTblSetRowData,//0xA1F4
  569.     sysTrapTblSetColumnSpacing,//0xA1F5
  570.  
  571.  
  572.     
  573.     sysTrapWinCreateWindow,//0xA1F6
  574.     sysTrapWinCreateOffscreenWindow,//0xA1F7
  575.     sysTrapWinDeleteWindow,//0xA1F8
  576.     sysTrapWinInitializeWindow,//0xA1F9
  577.     sysTrapWinAddWindow,//0xA1FA
  578.     sysTrapWinRemoveWindow,//0xA1FB
  579.     sysTrapWinSetActiveWindow,//0xA1FC
  580.     sysTrapWinSetDrawWindow,//0xA1FD
  581.     sysTrapWinGetDrawWindow,//0xA1FE
  582.     sysTrapWinGetActiveWindow,//0xA1FF
  583.     sysTrapWinGetDisplayWindow,//0xA200
  584.     sysTrapWinGetFirstWindow,//0xA201
  585.     sysTrapWinEnableWindow,//0xA202
  586.     sysTrapWinDisableWindow,//0xA203
  587.     sysTrapWinGetWindowFrameRect,//0xA204
  588.     sysTrapWinDrawWindowFrame,//0xA205
  589.     sysTrapWinEraseWindow,//0xA206
  590.     sysTrapWinSaveBits,//0xA207
  591.     sysTrapWinRestoreBits,//0xA208
  592.     sysTrapWinCopyRectangle,//0xA209
  593.     sysTrapWinScrollRectangle,//0xA20A
  594.     sysTrapWinGetDisplayExtent,//0xA20B
  595.     sysTrapWinGetWindowExtent,//0xA20C
  596.     sysTrapWinDisplayToWindowPt,//0xA20D
  597.     sysTrapWinWindowToDisplayPt,//0xA20E
  598.     sysTrapWinGetClip,//0xA20F
  599.     sysTrapWinSetClip,//0xA210
  600.     sysTrapWinResetClip,//0xA211
  601.     sysTrapWinClipRectangle,//0xA212
  602.     sysTrapWinDrawLine,//0xA213
  603.     sysTrapWinDrawGrayLine,//0xA214
  604.     sysTrapWinEraseLine,//0xA215
  605.     sysTrapWinInvertLine,//0xA216
  606.     sysTrapWinFillLine,//0xA217
  607.     sysTrapWinDrawRectangle,//0xA218
  608.     sysTrapWinEraseRectangle,//0xA219
  609.     sysTrapWinInvertRectangle,//0xA21A
  610.     sysTrapWinDrawRectangleFrame,//0xA21B
  611.     sysTrapWinDrawGrayRectangleFrame,//0xA21C
  612.     sysTrapWinEraseRectangleFrame,//0xA21D
  613.     sysTrapWinInvertRectangleFrame,//0xA21E
  614.     sysTrapWinGetFramesRectangle,//0xA21F
  615.     sysTrapWinDrawChars,//0xA220
  616.     sysTrapWinEraseChars,//0xA221
  617.     sysTrapWinInvertChars,//0xA222
  618.     sysTrapWinGetPattern,//0xA223
  619.     sysTrapWinSetPattern,//0xA224
  620.     sysTrapWinSetUnderlineMode,//0xA225
  621.     sysTrapWinDrawBitmap,//0xA226
  622.     sysTrapWinModal,//0xA227
  623.     sysTrapWinGetWindowBounds,//0xA228
  624.     sysTrapWinFillRectangle,//0xA229
  625.     sysTrapWinDrawInvertedChars,//0xA22A
  626.     
  627.     
  628.     
  629.     sysTrapPrefOpenPreferenceDB,//0xA22B
  630.     sysTrapPrefGetPreferences,//0xA22C
  631.     sysTrapPrefSetPreferences,//0xA22D
  632.     sysTrapPrefGetAppPreferences,//0xA22E
  633.     sysTrapPrefSetAppPreferences,//0xA22F
  634.  
  635.     
  636.     sysTrapSndInit,//0xA230
  637.     sysTrapSndSetDefaultVolume,//0xA231
  638.     sysTrapSndGetDefaultVolume,//0xA232
  639.     sysTrapSndDoCmd,//0xA233
  640.     sysTrapSndPlaySystemSound,//0xA234
  641.     
  642.     
  643.     sysTrapAlmInit,//0xA235
  644.     sysTrapAlmCancelAll,//0xA236
  645.     sysTrapAlmAlarmCallback,//0xA237
  646.     sysTrapAlmSetAlarm,//0xA238
  647.     sysTrapAlmGetAlarm,//0xA239
  648.     sysTrapAlmDisplayAlarm,//0xA23A
  649.     sysTrapAlmEnableNotification,//0xA23B
  650.     
  651.     
  652.     sysTrapHwrGetRAMMapping,//0xA23C
  653.     sysTrapHwrMemWritable,//0xA23D
  654.     sysTrapHwrMemReadable,//0xA23E
  655.     sysTrapHwrDoze,//0xA23F
  656.     sysTrapHwrSleep,//0xA240
  657.     sysTrapHwrWake,//0xA241
  658.     sysTrapHwrSetSystemClock,//0xA242
  659.     sysTrapHwrSetCPUDutyCycle,//0xA243
  660.     sysTrapHwrLCDInit,//0xA244
  661.     sysTrapHwrLCDSleep,//0xA245
  662.     sysTrapHwrTimerInit,//0xA246
  663.     sysTrapHwrCursor,//0xA247
  664.     sysTrapHwrBatteryLevel,//0xA248
  665.     sysTrapHwrDelay,//0xA249
  666.     sysTrapHwrEnableDataWrites,//0xA24A
  667.     sysTrapHwrDisableDataWrites,//0xA24B
  668.     sysTrapHwrLCDBaseAddr,//0xA24C
  669.     sysTrapHwrLCDDrawBitmap,//0xA24D
  670.     sysTrapHwrTimerSleep,//0xA24E
  671.     sysTrapHwrTimerWake,//0xA24F
  672.     sysTrapHwrLCDWake,//0xA250
  673.     sysTrapHwrIRQ1Handler,//0xA251
  674.     sysTrapHwrIRQ2Handler,//0xA252
  675.     sysTrapHwrIRQ3Handler,//0xA253
  676.     sysTrapHwrIRQ4Handler,//0xA254
  677.     sysTrapHwrIRQ5Handler,//0xA255
  678.     sysTrapHwrIRQ6Handler,//0xA256
  679.     sysTrapHwrDockSignals,//0xA257
  680.     sysTrapHwrPluggedIn,//0xA258
  681.  
  682.     
  683.     sysTrapCrc16CalcBlock,//0xA259
  684.     
  685.     
  686.     sysTrapSelectDay,//0xA25A
  687.     sysTrapSelectTime,//0xA25B
  688.     
  689.     sysTrapDayDrawDaySelector,//0xA25C
  690.     sysTrapDayHandleEvent,//0xA25D
  691.     sysTrapDayDrawDays,//0xA25E
  692.     sysTrapDayOfWeek,//0xA25F
  693.     sysTrapDaysInMonth,//0xA260
  694.     sysTrapDayOfMonth,//0xA261
  695.     
  696.     sysTrapDateDaysToDate,//0xA262
  697.     sysTrapDateToDays,//0xA263
  698.     sysTrapDateAdjust,//0xA264
  699.     sysTrapDateSecondsToDate,//0xA265
  700.     sysTrapDateToAscii,//0xA266
  701.     sysTrapDateToDOWDMFormat,//0xA267
  702.     sysTrapTimeToAscii,//0xA268
  703.         
  704.     
  705.     sysTrapFind,//0xA269
  706.     sysTrapFindStrInStr,//0xA26A
  707.     sysTrapFindSaveMatch,//0xA26B
  708.     sysTrapFindGetLineBounds,//0xA26C
  709.     sysTrapFindDrawHeader,//0xA26D
  710.     
  711.     sysTrapPenOpen,//0xA26E
  712.     sysTrapPenClose,//0xA26F
  713.     sysTrapPenGetRawPen,//0xA270
  714.     sysTrapPenCalibrate,//0xA271
  715.     sysTrapPenRawToScreen,//0xA272
  716.     sysTrapPenScreenToRaw,//0xA273
  717.     sysTrapPenResetCalibration,//0xA274
  718.     sysTrapPenSleep,//0xA275
  719.     sysTrapPenWake,//0xA276
  720.     
  721.     
  722.     sysTrapResLoadForm,//0xA277
  723.     sysTrapResLoadMenu,//0xA278
  724.     
  725.     sysTrapFtrInit,//0xA279
  726.     sysTrapFtrUnregister,//0xA27A
  727.     sysTrapFtrGet,//0xA27B
  728.     sysTrapFtrSet,//0xA27C
  729.     sysTrapFtrGetByIndex,//0xA27D
  730.     
  731.     
  732.     
  733.     sysTrapGrfInit,//0xA27E
  734.     sysTrapGrfFree,//0xA27F
  735.     sysTrapGrfGetState,//0xA280
  736.     sysTrapGrfSetState,//0xA281
  737.     sysTrapGrfFlushPoints,//0xA282
  738.     sysTrapGrfAddPoint,//0xA283
  739.     sysTrapGrfInitState,//0xA284
  740.     sysTrapGrfCleanState,//0xA285
  741.     sysTrapGrfMatch,//0xA286
  742.     sysTrapGrfGetMacro,//0xA287
  743.     sysTrapGrfFilterPoints,//0xA288
  744.     sysTrapGrfGetNumPoints,//0xA289
  745.     sysTrapGrfGetPoint,//0xA28A
  746.     sysTrapGrfFindBranch,//0xA28B
  747.     sysTrapGrfMatchGlyph,//0xA28C
  748.     sysTrapGrfGetGlyphMapping,//0xA28D
  749.     sysTrapGrfGetMacroName,//0xA28E
  750.     sysTrapGrfDeleteMacro,//0xA28D
  751.     sysTrapGrfAddMacro,//0xA290
  752.     sysTrapGrfGetAndExpandMacro,//0xA291
  753.     sysTrapGrfProcessStroke,//0xA292
  754.     sysTrapGrfFieldChange,//0xA293
  755.     
  756.     
  757.     sysTrapGetCharSortValue,//0xA294
  758.     sysTrapGetCharAttr,//0xA295
  759.     sysTrapGetCharCaselessValue,//0xA296
  760.     
  761.     
  762.     sysTrapPwdExists,//0xA297
  763.     sysTrapPwdVerify,//0xA298
  764.     sysTrapPwdSet,//0xA299
  765.     sysTrapPwdRemove,//0xA29A
  766.     
  767.     sysTrapGsiInitialize,//0xA29B
  768.     sysTrapGsiSetLocation,//0xA29C
  769.     sysTrapGsiEnable,//0xA29D
  770.     sysTrapGsiEnabled,//0xA29E
  771.     sysTrapGsiSetShiftState,//0xA29F
  772.     
  773.     sysTrapKeyInit,//0xA2A0
  774.     sysTrapKeyHandleInterrupt,//0xA2A1
  775.     sysTrapKeyCurrentState,//0xA2A2
  776.     sysTrapKeyResetDoubleTap,//0xA2A3
  777.     sysTrapKeyRates,//0xA2A4
  778.     sysTrapKeySleep,//0xA2A5
  779.     sysTrapKeyWake,//0xA2A6
  780.     
  781.     
  782.     sysTrapCmBroadcast,//0xA2A7
  783.     
  784.     sysTrapDlkStartServer,//0xA2A8
  785.     sysTrapDlkGetSyncInfo,//0xA2A9
  786.     sysTrapDlkSetLogEntry,//0xA2AA
  787.  
  788.     sysTrapPsrInit,//0xA2AB
  789.     sysTrapPsrClose,//0xA2AC
  790.     sysTrapPsrGetCommand,//0xA2AD
  791.     sysTrapPsrSendReply,//0xA2AE
  792.     
  793.     sysTrapAbtShowAbout,//0xA2AF
  794.     
  795.     sysTrapMdmDial,//0xA2B0
  796.     sysTrapMdmHangUp,//0xA2B1
  797.     
  798.     sysTrapDmSearchRecord,//0xA2B2
  799.  
  800.     sysTrapSysInsertionSort,//0xA2B3
  801.     sysTrapDmInsertionSort,//0xA2B4
  802.     
  803.     sysTrapLstSetTopItem,//0xA2B5
  804.  
  805.     // WARNING!! LEAVE THIS ONE AT THE END
  806.     sysTrapLastTrapNumber//0xA2B6
  807.     } SysTrapNumber;
  808.     
  809. #define    sysNumTraps     (sysTrapLastTrapNumber - sysTrapBase)
  810.  
  811.  
  812.  
  813. //--------------------------------------------------------------------
  814. // Define Library Trap Numbers
  815. //--------------------------------------------------------------------
  816. // Library traps start here and go up by 1's
  817. #define    sysLibTrapBase        0xA800
  818. typedef enum {
  819.     sysLibTrapName = sysLibTrapBase,//0xA800
  820.     sysLibTrapOpen,//0xA801
  821.     sysLibTrapClose,//0xA802
  822.     sysLibTrapSleep,//0xA803
  823.     sysLibTrapWake,//0xA804
  824.     sysLibTrapCustom//0xA805
  825.     } SysLibTrapNumber;
  826.  
  827.  
  828.  
  829.     
  830. /************************************************************
  831.  * Pilot specific TRAP instruction numbers
  832.  *************************************************************/
  833. #define sysDbgBreakpointTrapNum        0        // For soft breakpoints        
  834. #define sysDbgTrapNum                    8        // For compiled breakpoints            
  835. #define sysDispatchTrapNum                15        // Trap dispatcher
  836.  
  837. #define SYS_TRAP(trapNum) \
  838.     TWOWORD_INLINE(m68kTrapInstr+sysDispatchTrapNum,trapNum)
  839.     
  840. #define ASM_SYS_TRAP(trapNum)    \
  841.             DC.W    m68kTrapInstr+sysDispatchTrapNum; \
  842.             DC.W    trapNum
  843.     
  844.  
  845. #endif  //__SYSTRAPS_H_
  846.  
  847.  
  848.  
  849.